// 颜色
$main-color: #007dff;
$auxiliary-color: #f6f8fa;
$border-color: #d8d8d8;
$line-color: #e1e6ed;
// 字体大小
$font-size: 14px;
$font-sizes: 18px;
$font-size1: 12px;
:deep(.el-select__wrapper) {
  width: 100%;
}
.purchase {
  background-color: #fff;
  position: relative;
  padding-bottom: 45px;
  border-radius: 10px;
  box-shadow: 4px 5px 16px 0px rgba(4, 19, 74, 0.04);
  width: 100%;
  // 头部
  &_header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 62px;
    max-height: 62px;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px 0 20px;
    overflow: hidden;
    button {
      background: #f2f3f5;
      width: 92px;
    }
    p {
      position: relative;
    }
    p::before {
      content: "";
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background-color: $main-color;
      position: absolute;
      left: -6px;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  }
  // 供应商信息
  &_supply_information {
    padding: 0 20px 20px 20px;
    overflow: hidden;
    p {
      font-size: 18px;
      margin: 20px 0 20px 0;
    }
    &_message {
      background-color: $auxiliary-color;
      padding: 20px;
      display: flex;
      justify-content: space-between;
      div {
        p {
          font-size: 14px;
        }
      }
    }
    &_serch {
      display: flex;
      align-items: center;
      p {
        margin-right: 10px;
      }
      div {
        display: flex;
        width: 80%;
        .el-select {
          width: 500px !important;
          min-width: 80% !important;
          .el-select__wrapper {
            width: 100% !important;
            background: #f2f3f5 !important;
          }
          :deep(.el-select__wrapper) {
            width: 100% !important;
            background: #f2f3f5 !important;
          }
        }
        button {
          margin-left: 20px;
        }
      }
      &_select {
        div {
          .add_btn {
            background: #007dff !important;
            opacity: 0.5;
          }
        }
      }
    }
  }
  &_commodity_information {
    padding: 0 20px 20px 20px;
    p {
      font-size: 18px;
      margin: 20px 0 20px 0;
    }
    :deep(.el-input__wrapper) {
      background-color: #fff;
    }
  }
  .purchase_form {
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    &-left {
      flex: 2;
      padding: 20px;
      margin-right: 12px;
      .el-form {
        .el-form-item {
          :deep(.el-input__wrapper) {
            background: #f2f3f5;
          }
          :deep(.el-textarea__inner) {
            background: #f2f3f5;
          }
        }
        .input-number {
          ::v-deep(.el-input__inner) {
            text-align: left;
          }
        }
        .warehouse_content {
          width: 100%;
          height: 58px;
          border: 1px solid #dcdfe6;
          box-sizing: border-box;
          display: flex;
          align-items: center;
          padding-left: 20px;
          overflow: hidden;
          .el-select {
            width: 50%;
          }
        }
      }
      :deep(.el-upload) {
        width: 50% !important;
        height: 100px !important;
        display: flex;
        flex-direction: column;
        // width: 80px;
        height: 80px;
        background: #f2f3f5;
        border-radius: 4px 4px 4px 4px;
        button {
          border: none !important;
          background-color: transparent !important;
        }
        p {
          color: #86909c !important;
        }
      }
    }
    &-right {
      flex: 1;
      padding: 20px;
      background: #f6f8fa;
      border-left: 1px solid #e2e8f0;
      box-sizing: border-box;
      .header {
        display: flex;
        p {
          width: 64px;
          color: #3d3d3d;
          display: flex;
          align-items: center;
          justify-content: center;
          background-color: #fff;
          height: 30px;
          margin-top: 1px;
          border-top-left-radius: 2px;
          border-bottom-left-radius: 2px;
        }
        .el-select {
          width: 200px;
        }
        :deep(.el-select__wrapper) {
          background-color: #fff;
        }
      }
      &-top {
        p:nth-child(1) {
          font-size: 16px;
          color: #86909c;
          margin-bottom: 20px;
        }
        div {
          margin-bottom: 10px;
          line-height: 2;
          p:nth-child(1) {
            font-size: 14px;
            margin-bottom: 0px;
          }
        }
      }
      &-botton {
        p:nth-child(1) {
          font-size: 18px;
          color: #86909c;
          margin-bottom: 20px;
        }
        div {
          margin-bottom: 10px;
          line-height: 2;
          p:nth-child(1) {
            font-size: 14px;
            margin-bottom: 0px;
          }
        }
      }
    }
  }
  .botton_btn {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 64px;
    background: #ffffff;
    box-shadow: 0px -3px 10px 0px rgba(4, 24, 48, 0.1);
    border-radius: 0px 0px 0px 0px;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    .left {
      display: flex;
      align-items: center;
      padding-left: 20px;
      overflow: hidden;
      p {
        margin: 0 50px 0 0;
        font-size: 14px;
        color: #86909c;
        span {
          color: #3d3d3d;
        }
      }
      p:nth-child(3) {
        font-size: 18px;
        color: #3d3d3d;
        span {
          color: #3d3d3d;
        }
      }
      p:nth-child(4) {
        font-size: 18px;
        color: #3d3d3d;
        span {
          color: #ff3333;
        }
      }
      p:nth-child(5) {
        font-size: 18px;
        color: #3d3d3d;
        span {
          color: #ff3333;
        }
      }
      .invoice-amount {
        font-size: 14px !important;
        color: #86909c !important;
        span {
          color: #3d3d3d !important;
        }
      }
    }
    .right {
      display: flex;
      justify-content: center;
      align-items: center;
      padding-right: 20px;
      overflow: hidden;
    }
  }
}
.sp_message {
  display: flex;
  div:nth-child(1) {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    flex: 1;
    min-width: 80px;
    max-width: 80px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  div:nth-child(2) {
    margin-left: 10px;
    flex: 2;
    p:nth-child(1) {
      font-size: 14px;
      color: #3d3d3d;
    }
    p {
      margin: 0 0 10px 0;
      font-size: 12px;
      color: #86909c;
    }
  }
}
// 清楚定时弹框里边的样式
.time_content {
  text-align: center;
  p {
    font-size: 14px;
    margin-top: 10px;
  }
}
.clear_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 0 0;
}
// 独立的表格样式
// .purchase_commodity_information_tabel{
//     .heade{
//         background-color: $auxiliary-color;
//         border: 1px solid #E1E6ED;
//         box-sizing: border-box;
//         line-height: 3;
//         .el-col{
//             font-size: 14px;
//             color: #4E5969;
//             padding-left: 10px;
//         }
//         .first{
//             display: flex;
//             align-items: center;
//             span{
//                 margin-left: 4px;
//             }
//         }
//     }
//     .list{
//        .el-col{
//         border-right: 1px solid #E1E6ED;
//         box-sizing: border-box;
//         text-align: center;
//         min-height: 40px;
//         display: flex;
//         justify-content: center;
//         align-items: center;
//         border-bottom: 1px solid #E1E6ED;
//        }
//        .el-col:nth-child(1){
//         border-left: 1px solid #E1E6ED;
//         justify-content: start;
//         align-items: center;
//        }
//        .sp_messge{
//         display: flex;
//         position: relative;
//         .picter{
//             flex: 1;
//             width: 120px;
//             height: 120px;
//             min-width: 120px;
//             max-height: 120px;
//             position: absolute;
//             top: 50%;
//             transform: translate(0%, -50%);
//             display: flex;
//             justify-content: center;
//             align-items: center;
//             div:nth-child(1){
//                 flex: 1;
//                 max-width: 20px;
//                 min-width: 20px;
//             }
//             div:nth-child(2){
//                 flex: 2;
//                 border: 1px solid #ccc;
//                 box-sizing: border-box;
//                 height: 100%;
//                 border-radius: 6px;
//                 overflow: hidden;
//             }
//         }
//         .content{
//             flex: 2;
//             margin-left: 140px;
//             display: flex;
//             flex-direction: column;
//             justify-content: start;
//             align-items: flex-start;
//         }
//        }
//     }
// }
